<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8"/>
    <title>java</title>
    <link rel="stylesheet" th:href="@{/css/myStyle.css}"/>
</head>
<body xmlns:th="http://www.thymeleaf.org">
<div class="n-head">
    <div class="g-doc f-cb">
        <div class="user">
            卖家你好，<span class="name">seller</span>！<a href="/logout">[退出]</a>
        </div>
        <ul class="nav">
            <li><a href="/">首页</a></li>
            <li><a href="/publish">发布</a></li>
        </ul>
    </div>
</div>
<div class="g-doc">
    <div class="n-result">
        <h3 th:text="${content}">发布成功</h3>
        <p>
            <a onclick="check()">[查看内容]</a>
            <a href="/">[返回首页]</a>
        </p>
    </div>
</div>
<div class="n-foot">
    <p>
        杭研有数：陈佳——在校作业
    </p>
</div>
<script>
    function check() {
        var id = [[${id}]];
        window.location.href="/show?id=" + id;
    }
</script>
</body>
</html>